<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/mootools.js"></script>
	<script type="text/javascript" src="js/calendar.rc4.js"></script>
	<script type="text/javascript">		
	//<![CDATA[
		window.addEvent('domready', function() { 
	
			myCal2 = new Calendar({ date: 'd/m/Y' }, { classes: ['dashboard'], direction: 1, tweak: {x: 3, y: -3} });
		});
	//]]>
	</script>
	<link rel="stylesheet" type="text/css" href="css/iframe.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/calendar.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/dashboard.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="css/i-heart-ny.css" media="screen" />
<script language="JavaScript">

	function choseCate(){
		window.open ("SevCategory?types=choose", "new windows", "height=400, width=400, top=300,left=400, toolbar=no,  menubar=no, scrollbars=no, resizable=no,location=no, status=no")  
	}
	function  getNewLinkValue(value1,value2){

		document.getElementById("idCate").value=value1;
		document.getElementById("cate").value=value2;

	}

</script> 

</head>
<body>

	<% 
  		String message = (String)request.getAttribute("message")==null?"":(String)request.getAttribute("message");
		String promoterId=(String)request.getSession().getAttribute("id");
  		if(!message.equals("")){
  	%>
  		<%=message %>
  	<%} %>
  	
	<form method="post" action="SaddEvent">
	<table>
	<tr>
    	<td>name</td>
    	<td><input type="text" name="name"></td>
    </tr>
    <tr>
    	<td>place</td>
    	<td><input type="text" name="place"></td>
    </tr>
     <tr>
    	<td>date</td>
    	<td><input id="date" name="date" type="text" /></td>
    </tr>
    <tr>
    	<td>hour</td>
    	<td><input type="text" name="hour"></td>
    </tr>
     <tr>
    	<td>nombre</td>
    	<td><input type="text" name="nb"></td>
    </tr>
     <tr>
    	<td>category</td>
    	<td><input type="hidden" id="idCate" name="idCate"><input type="text" id="cate" name="cate" onClick="choseCate();"></td>
    </tr>
     <tr>
    	<td><input type="hidden" value=<%=promoterId%>  name="idPromo" ></td>
    </tr>

      <tr>
    	<td>description</td>
    	<td><textarea  rows="10" id="contactus" name="des"></textarea></td>
    </tr>
   	
	</table>
	<input type="submit"  value="add">
	</form>
</body>
</html>